import COMMONATION from 'service/apis/commonAction'
import Request from 'service/request'

export async function getUploadToken(params) {
  return Request({
    url: COMMONATION.GET_UPLOAD_TOKEN + '?ver=' + (new Date()).getTime(),
    data: params
  })
}

// 获取用户信息
export async function getUserMsg({ id, token }) {
  return Request({
    url: COMMONATION.USER_MSG + '/' + id + '?ver=' + (new Date()).getTime(),
    Authorization:'Bearer ' + token,
  })
}
